package com.act.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.act.dao.ICustomsManagementDao;
import com.act.domain.CustomsManagement;
import com.act.service.api.ICustomsManagementService;

@Service
public class CustomsManagementServiceImpl implements ICustomsManagementService{
	
	@Resource
	ICustomsManagementDao customsManagementDao;

	@Override
	public void add(CustomsManagement customsManagement) {
		// TODO Auto-generated method stub
		customsManagementDao.add(customsManagement);
	}

	@Override
	public void delete(int id) {
		// TODO Auto-generated method stub
		customsManagementDao.delete(id);
	}

	@Override
	public void update(CustomsManagement customsManagement) {
		// TODO Auto-generated method stub
		customsManagementDao.update(customsManagement);
	}

	@Override
	public List<CustomsManagement> getCustomsManagementsByPayee(CustomsManagement customsManagement) {
		// TODO Auto-generated method stub
		return customsManagementDao.getCustomsManagementsByPayee(customsManagement);
	}

	@Override
	public List<CustomsManagement> getAllByTypeOrPayyee(@Param("type")String type,@Param("payee")String payee) {
		
		return customsManagementDao.getAllByTypeOrPayyee(type, payee);
	}

	

}
